home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacHack 1998
/
MacHack 1998.toast
/
The Hacks!
/
MemBuddy
/
MemBuddy Demo
/
HelloWorld.c
next >
Wrap
C/C++ Source or Header
|
1998-06-19
|
378b
|
19 lines
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#define kALotofMemmory (10L* 1024L * 1024L)
int main(void)
{
char* myPtr;
printf ("Hello World, This is a Membuddy Test\n\n");
printf("\nThe size resource is set to 384K and I am going to allocate %ld K\n", kALotofMemmory / 1024);
myPtr = malloc(kALotofMemmory);
printf("myPtr = %8.8lX\n", myPtr);
return 0;
}